#version 330 core

uniform vec4 color;
in float radius;
out vec4 FragColor;

void main() {
    vec2 texCoord = gl_PointCoord * 2.0 - 1.0;
    float distance = length(texCoord);
    if (distance > 1.0) {
        discard;
    }
    FragColor = color;
}